import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import java.util.StringTokenizer;

public class StringSplitter {
    public static void main(String[] args) {
        String source = "There are few different words available available are few here";
        String[] arrayOfStrings = source.split("");
        System.out.println(source);
        StringTokenizer tokenizer = new StringTokenizer(source);
        Set<String> stringSet = new HashSet<String>();
        while (tokenizer.hasMoreTokens()) {
            stringSet.add(tokenizer.nextToken());
        }
        Iterator<String> iterator = stringSet.iterator();
        while (iterator.hasNext()) {
            System.out.println(iterator.next());
        }
    }
}
